package com.coffee.excel;

import lombok.Getter;

/**
 * 业务层异常
 * @author: songkui
 * @since: 2023/2/14 11:18
 */
@Getter
public class MochaExcelException extends RuntimeException {
    private static final long serialVersionUID = 8182722287938L;
    private String message;

    private Integer state;

    public MochaExcelException(int state, String message){
        super(message);
        this.message = message;
        this.state = state;
    }

    public MochaExcelException(String message) {
        super(message);
        this.message = message;
    }


    public MochaExcelException(final String msgCode, final Throwable ex) {
        super(msgCode, ex);
    }


}
